package com.htsc.mrp.utils;

import java.util.Map;

/**
 * @author 013056
 * @date 2018/11/9 15:18
 * @description: Htsc.com Inc. Copyright (c) 2004-2018 All Rights Reserved.
 * 分页对象
 */
public class Pagination {

    private Integer page = 1; // 目前是第几页

    private Integer size = 20; // 每页大小

    private Map<Object, Object> params; // 传入的参数

    private String orderColumn;

    private String orderTurn = "ASC";

    public Pagination(Integer _page) {
        if (_page != null) {
            this.page = _page;
        }
    }

    /**
     * Getter method for property &lt;tt&gt;page&lt;/tt&gt;.
     *
     * @return property value of page
     */
    public Integer getPage() {
        return page;
    }

    /**
     * Setter method for property &lt;tt&gt;page&lt;/tt&gt;.
     *
     * @param page value to be assigned to property page
     */
    public void setPage(Integer page) {
        this.page = page;
    }

    /**
     * Getter method for property &lt;tt&gt;size&lt;/tt&gt;.
     *
     * @return property value of size
     */
    public Integer getSize() {
        return size;
    }

    /**
     * Setter method for property &lt;tt&gt;size&lt;/tt&gt;.
     *
     * @param size value to be assigned to property size
     */
    public void setSize(Integer size) {
        this.size = size;
    }

    /**
     * Getter method for property &lt;tt&gt;params&lt;/tt&gt;.
     *
     * @return property value of params
     */
    public Map<Object, Object> getParams() {
        return params;
    }

    /**
     * Setter method for property &lt;tt&gt;params&lt;/tt&gt;.
     *
     * @param params value to be assigned to property params
     */
    public void setParams(Map<Object, Object> params) {
        this.params = params;
    }

    /**
     * Getter method for property &lt;tt&gt;orderColumn&lt;/tt&gt;.
     *
     * @return property value of orderColumn
     */
    public String getOrderColumn() {
        return orderColumn;
    }

    /**
     * Setter method for property &lt;tt&gt;orderColumn&lt;/tt&gt;.
     *
     * @param orderColumn value to be assigned to property orderColumn
     */
    public void setOrderColumn(String orderColumn) {
        this.orderColumn = orderColumn;
    }

    /**
     * Getter method for property &lt;tt&gt;orderTurn&lt;/tt&gt;.
     *
     * @return property value of orderTurn
     */
    public String getOrderTurn() {
        return orderTurn;
    }

    /**
     * Setter method for property &lt;tt&gt;orderTurn&lt;/tt&gt;.
     *
     * @param orderTurn value to be assigned to property orderTurn
     */
    public void setOrderTurn(String orderTurn) {
        this.orderTurn = orderTurn;
    }

}
